<!--#include file="proliphixConsts.asp"-->
<!--#include file="proliphixMethods.asp"-->
<%
  'v4.2.2008
  if (LCase(Request.Form("SubmitMode")) ="set") then Call SetApplicationValue(MODE, Request.Form("Mode")) end if
  if (LCase(Request.Form("SubmitState")) ="set") then Call SetApplicationValue(STATE, Request.Form("State")) end if
  if (LCase(Request.Form("SubmitFan")) ="set") then Call SetApplicationValue(FAN, Request.Form("fan")) end if
  if (LCase(Request.Form("SubmitFanState")) ="set") then Call SetApplicationValue(FANSTATE, Request.Form("fanstate")) end if
  if (LCase(Request.Form("SubmitCurrent")) ="set") then Call SetApplicationValue(SENSOR_TEMP_LOCAL, Request.Form("Current")) end if
  if (LCase(Request.Form("SubmitHeat")) ="set") then Call SetApplicationValue(SETBACKHEAT, Request.Form("heat")) end if
  if (LCase(Request.Form("SubmitCool")) ="set") then Call SetApplicationValue(SETBACKCOOL, Request.Form("cool")) end if
  if (LCase(Request.Form("SubmitRemote")) ="set") then Call SetApplicationValue(SENSOR_TEMP_1, Request.Form("remote")) end if
  if (LCase(Request.Form("SubmitHumidity")) ="set") then Call SetApplicationValue(RELATIVE_HUMIDITY, Request.Form("humidity")) end if
%>
<form action="proliphixTests.asp" Method=post>
<table width=50%>
<tr><td>Mode:</td><td><%OutputMode()%></td><td><select name=Mode><option value="1">Off</option><option value="2">Heat</option><option value="3">Cool</option><option value="4">Auto</option></select></td><td><input type="submit" value="Set" name="SubmitMode"></td></tr>
<tr><td>State:</td><td><%OutputState()%></td><td><select name=state><option value="1">Init</option><option value="2">Off</option><option value="3">Heat</option><option value="4">Heat 2</option><option value="5">Cool</option><option value="6">Cool 2</option><option value="7">Delay</option><option value="8">Reset Relays</option></select></td><td><input type="submit" value="Set" name="SubmitState"></td></tr>

<tr><td>Fan Mode:</td><td><%OutputFan()%></td><td><select name=Fan><option value="1">AUTO</option><option value="2">ON</option><option value="3">SCHEDULE</option></select></td><td><input type="submit" value="Set" name="SubmitFan"></td></tr>
<tr><td>Fan State:</td><td><%OutputFanState()%></td><td><select name=FanState><option value="1">INIT</option><option value="2">OFF</option><option value="3">ON</option></select></td><td><input type="submit" value="Set" name="SubmitFanState"></td></tr>
<tr><td>Current Temp:</td><td><%OutputLocalTemp()%></td><td><input type=text value="<%OutputLocalTemp%>" name=Current></td><td><input type="submit" value="Set" name="SubmitCurrent"></td></tr>
<tr><td>Heat SetPoint:</td><td><%OutputSetBackHeat()%></td><td><input type=text value="<%OutputSetBackHeat%>" name=heat></td><td><input type="submit" value="Set" name="SubmitHeat"></td></tr>
<tr><td>Cool SetPoint:</td><td><%OutputSetBackCool()%></td><td><input type=text value="<%OutputSetBackCool%>" name=cool></td><td><input type="submit" value="Set" name="SubmitCool"></td></tr>
<tr><td>Remote Sensor 1:</td><td><%OutputSensor1Temp()%></td><td><input type=text value="<%OutputSensor1Temp%>" name=remote></td><td><input type="submit" value="Set" name="SubmitRemote"></td></tr>
<tr><td>Humidity:</td><td><%OutputRelativeHumidity()%></td><td><input type=text value="<%OutputRelativeHumidity%>" name=humidity></td><td><input type="submit" value="Set" name="SubmitHumidity"></td></tr>
</form>
